using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "Condition11-被杀死的是这个棋子", menuName = "Skill/Condition/Condition11-被杀死的是这个棋子", order = 11)]
public class Condition11 : ConditionBase
{
    public override bool Evaluate(Pair pair,GameEvent e)
    {
        if (e is not KillChessEvent killChess) return false;
        return killChess.DeadChess == pair.Chess;
    }
}